package com.cai.xiaobai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cai.xiaobai.entity.AnswerInfo;
import com.cai.xiaobai.entity.AnswerOptionContent;
import com.cai.xiaobai.entity.FromInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 答案数据表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-05-13
 */
public interface AnswerInfoMapper extends BaseMapper<AnswerInfo> {

    List<FromInfo> getHistory(@Param("openId") String openId);

    /**
     * 查询某个人对应表格的内容答案数据
     *
     * @param fromId 问卷id
     * @param openId 用户id
     */
    List<AnswerOptionContent> getFromAnswerInfo(@Param("fromId") String fromId, @Param("openId") String openId);
}
